import React, { Component } from 'react';
import axios from 'axios';
class App extends Component {
	constructor (props) {
		super(props);
		this.state = {
			cartlist:[]
		}	
	}
	componentDidMount () {
		axios.post('/users/getcart',{ username:localStorage.getItem('username') })
			.then((data) => {
				console.log(data.data);
			})
	}
  render() {
    return (
      	<div className="box">
      		<header className="header cart-header">
						<i>购物袋</i>
						<span>编辑</span>
					</header>
					<div className="content cart-content">
						<ul className="cc-ul">
							
						</ul>
					</div>
      	</div>
    );
  }
}

export default App;
